<?php
class OrderModel extends MY_Model {

    function __construct()
    {
        parent::__construct();
        $this->_table = '`order`';
    }
    
    function isExistNumber($number){
    	$result = $this->db->query('select count(*) as count from '.$this->_table.' where number="'.$number.'"');
    	return $result->row()->count;
    }
}
?>